<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Kategori extends CI_Controller {

	function __construct()
	{
		parent::__construct();
	}

	function get_ajax_sub_jenis(){
		$this->load->model('kategori_model');
		
		$sub_jenis = $this->kategori_model->get_sub_by_jenis($this->input->post('jenis'));
		$sub_jenis_options = '<option value="0" >-- Pilih Sub Jenis Permasalahan --</option>';
					
			foreach($sub_jenis->result() as $row){
				$sub_jenis_options .= '<option value="'.$row->KET_REF_DATA.'" >'.$row->KET_REF_DATA.'</option>';
			}
		
		echo $sub_jenis_options;
	}
	
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */